import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int numbers = 0;
        int words = 0;
        int space = 0;
        int other = 0;
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();

        //write your code here......
        char[] ch = str.toCharArray();
        for(int i = 0;i<ch.length;i++){
            if(ch[i] >= 'a' && ch[i] <= 'z'){
                words++;
            }else if(ch[i] >= 48 && ch[i] <= 57){
                numbers++;
            }else if (ch[i] == ' '){
                space++;
            }else{
                other++;
            }
        }

        System.out.println("英文字母"+words+"数字"+numbers+"空格"+space+"其他"+other);
    }
}